import { IsString, MaxLength, IsNumber, IsBoolean } from 'class-validator';

export class CreateAuthorityDTO {
  @IsString()
  @MaxLength(30)
  readonly name: string;

  @IsString()
  @MaxLength(100)
  readonly description: string;

  @IsNumber()
  readonly level: number;

  @IsString()
  readonly type: 'MENU' | 'QUERY' | 'MUTATION';

  readonly path: string;

  @IsBoolean()
  readonly isSystem: boolean;

  readonly parentId: string;
}
